package com.veryGood.service.Impl;

import com.veryGood.domain.dto.PurchaseInfoDTO;
import com.veryGood.domain.dto.SalesInfoDTO;
import com.veryGood.domain.pojo.PurchaseInfo;
import com.veryGood.mapper.PurchaseMapper;
import com.veryGood.service.PurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 南宫
 * @version 1.0
 * @date 2024-01-30 下午10:46
 */
@Service
public class PurchaseServiceImpl implements PurchaseService {

    @Autowired
    private PurchaseMapper mapper;

    @Override
    public List<PurchaseInfoDTO> getAllPurchaseInfo() {
        return mapper.getAllPurchaseInfo();
    }

    @Override
    public List<SalesInfoDTO> getAllSalesInfo() {
        return mapper.getAllSalesInfo();
    }
}